package me.a01dolydemo1;

public class Test {
    public static void main(String[] args) {
        Student s = new Student();
        s.setName("张三");
        s.setAge(18);
        Teacher t = new Teacher();
        t.setName("张三");
        t.setAge(19);
        Admin a = new Admin();
        a.setName("张三");
        a.setAge(20);
        show(s);
        show(t);
        show(a);
    }

    public static void show(Person p) {
        p.show();
    }
}
